function prob = TextFeat_Prob_Estimation( img, msk)
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here

floder  = 'E:\MyProjects\mexProjects\Debug\';
n_msk   =   msk;
m       =   msk>0.2&msk<0.3;
n_msk(m)    =   0;

m       =   msk>0.9;
n_msk(m)    =   250;

imwrite(uint8(img), [floder 'i.png']);
imwrite(uint8(n_msk), [floder 'm.png']);

exe_name =  [floder 'MexLBPFeat.exe'];
cmd     =   [exe_name ' ' floder 'i.png ' floder 'm.png ' floder 'p.xml'];
[status,result] = dos(cmd);

S = cv.FileStorage([floder 'p.xml']);
prob =  double(S.prob);

